package com.cswangdao.mapper;

import com.cswangdao.domain.dto.IssuePageDTO;
import com.cswangdao.domain.model.MarketIssue;
import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface MarketIssueMapper {


    Page<MarketIssue> pageQueryInfo(IssuePageDTO pageDTO);

    void updateById(MarketIssue issue);

    void addIssue(MarketIssue issue);

    @Delete("delete from market_issue where id = #{id}")
    void deleteById(Integer id);

    List<MarketIssue> getAllIssue();

}